package vista;

import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.Rectangle;

import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.Scrollable;

import java.awt.BorderLayout;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.JLabel;

public class FrameSalonMesaReservada extends JPanel implements Scrollable {

	/**
	 * Create the panel.
	 */
	public FrameSalonMesaReservada() {
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{102, 0};
		gridBagLayout.rowHeights = new int[]{133, 34, 0, 0};
		gridBagLayout.columnWeights = new double[]{1.0, Double.MIN_VALUE};
		gridBagLayout.rowWeights = new double[]{0.0, 0.0, 1.0, Double.MIN_VALUE};
		setLayout(gridBagLayout);
		
		JButton btnMesaReservada = new JButton("Mesa Reservada");
		GridBagConstraints gbc_btnMesaReservada = new GridBagConstraints();
		gbc_btnMesaReservada.fill = GridBagConstraints.BOTH;
		gbc_btnMesaReservada.insets = new Insets(5, 10, 5, 10);
		gbc_btnMesaReservada.gridx = 0;
		gbc_btnMesaReservada.gridy = 0;
		add(btnMesaReservada, gbc_btnMesaReservada);
		
		JLabel lblMesaReservada = new JLabel("Mesa Reservada");
		GridBagConstraints gbc_lblMesaReservada = new GridBagConstraints();
		gbc_lblMesaReservada.insets = new Insets(0, 0, 5, 0);
		gbc_lblMesaReservada.gridx = 0;
		gbc_lblMesaReservada.gridy = 1;
		add(lblMesaReservada, gbc_lblMesaReservada);

	}

	@Override
	public Dimension getPreferredScrollableViewportSize() {
		// TODO Apéndice de método generado automáticamente
		return new Dimension(200,200);
	}

	@Override
	public int getScrollableBlockIncrement(Rectangle arg0, int arg1, int arg2) {
		// TODO Apéndice de método generado automáticamente
		return 150;
	}

	@Override
	public boolean getScrollableTracksViewportHeight() {
		// TODO Apéndice de método generado automáticamente
		return false;
	}

	@Override
	public boolean getScrollableTracksViewportWidth() {
		// TODO Apéndice de método generado automáticamente
		return true;
	}

	@Override
	public int getScrollableUnitIncrement(Rectangle arg0, int arg1, int arg2) {
		// TODO Apéndice de método generado automáticamente
		return 150;
	}
}
